import { request } from '@/utils/service'
import type * as Info from '@/api/info/types/info'

export function queryBatteryInfo(data: Info.queryBatteryInfoRequestData) {
  return request<Info.queryBatteryInfoResponse>({
    url: '/queryBatteryInfo',
    method: 'post',
    data,
  })
}

export function ChargeDischarge(data: Info.ChargeDischargeswitchRequestData) {
  return request<Info.ChargeDischargeswitchResponse>({
    url: '/ChargeDischargeSwitch',
    method: 'post',
    data,
  })
}
export function queryBatteryClassificationProportion(
  data: Info.queryBatteryClassificationProportionRequestData,
) {
  return request<Info.queryBatteryClassificationProportionResponse>({
    url: '/queryBatteryClassificationProportion',
    method: 'post',
    data,
  })
}
